import 'package:flutter/material.dart';

class MyApp5 extends StatelessWidget {
  const MyApp5({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home:Scaffold(
        appBar: AppBar(
          title: const Text('Image组件'),
          backgroundColor: Colors.black26,
          centerTitle: true,
        ),
        body:  Center(
          child: Container(
            width: 400,
            height: 500,
            color:Colors.blue,
            // child: Image.network(
            //   'https://yanxuan-item.nosdn.127.net/e529b6ab111ade9da9314867f98d360f.png',
            //   fit: BoxFit.fill,
            //   )
            child: Image.asset('3dfw.0x/qiche.png'),
          ),
        )
      )
    );
  }
}